package com.xyht.sca_s.student_manage_system.modules.agreement.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.agreement.entity.vo.SmsAgreementApplicationProcessVO;
import com.xyht.sca_s.student_manage_system.modules.agreement.service.SmsAgreementApplicationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-06-11
 */
@SecretBody
@RestController
@RequestMapping("/agreement/process")
public class SmsAgreementApplicationProcessController {
    @Resource
    private SmsAgreementApplicationProcessService smsAgreementApplicationProcessService;


    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateAgreementProcess(@RequestBody SmsAgreementApplicationProcessVO processVO) {
        return smsAgreementApplicationProcessService.updateAgreementProcess(processVO);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getAgreementProcessList() {
        return smsAgreementApplicationProcessService.getAgreementProcessList();
    }
}

